var prod = false;

var settings = {
  "tencentApi": "https://www.edooschool.com/edooteach-tencent",
  "apiHost": "https://www.edooschool.com/edooteach-api",
}

var testSettings = {
  "tencentApi": "https://www.edooschool.com/edooteach-tencent",
  "apiHost": "https://www.edooschool.com/edooteach-api",
}

/**
 * get settings by key
 * @param key string key
 * @returns
 */
function get(key) {
  if (prod) {
    var value = settings[key];
    return value;
  } else {
    var value = testSettings[key];
    return value;
  }
}

/**
 * get all settings
 * @returns
 */
function getAll() {
  return settings;
}

module.exports = {
  get: get,
  getAll: getAll
}